package tw.com.softleader.fire.setting.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import tw.com.softleader.fire.common.entity.GenericEntity;

/**
 * 
 * @author Yuanchieh(Ebi)
 *
 */

@Entity
@Table(name = "SET_INSUREDITEM")
public class InsuredItemEntity extends GenericEntity {

	@Column(name = "CODE", length = 10, unique = true)
	private String code;

	@Column(name = "NAME", length = 100)
	private String name;

	@Column(name = "TYPE", length = 10)
	private String type;

	@Column(name = "PROPERTY", length = 10)
	private String property;

	@Column(name = "SECTION_CLASS", length = 10)
	private String sectionClass;

	@Override
	public String toString() {
		return "InsuredItemEntity [code=" + code + ", name=" + name + ", type="
				+ type + ", property=" + property + ", sectionClass="
				+ sectionClass + ", id=" + id + ", createTime=" + createTime
				+ ", creator=" + creator + ", modifiedTime=" + modifiedTime
				+ ", modifier=" + modifier + "]";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getSectionClass() {
		return sectionClass;
	}

	public void setSectionClass(String sectionClass) {
		this.sectionClass = sectionClass;
	}
}
